<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">



<h:body>
    <h:form id="addOrderDialogForm" >
        <h:panelGrid columns="2" cellpadding="10">
            <h:outputLabel for="order_name" value="Введите наименование заказа"/>
            <p:inputText id="order_name" value="#{ordersBean.order.name}" required="true"/>

            <h:outputLabel for="customer_name" value="Введите заказчика"/>
            <p:inputText id="customer_name" value="#{ordersBean.customer.name}" required="true"/>

            <h:outputLabel for="order_start_date" value="Введите дату начала строительства"/>
            <p:calendar value="#{ordersBean.ordersCustomerId.startDate}" id="order_start_date" showButtonPanel="true"/>

            <h:outputLabel for="order_total" value="Введите стоимость заказа"/>
            <p:inputText id="order_total" value="#{ordersBean.ordersCustomerId.total}" required="true"/>
        </h:panelGrid>
    </h:form>
</h:body>

</html>